export const basicCom = [
  {
    type: "input",
    label: "单行文本",
    defaultKey: null,
    defaultValue: null,
    width: "100px",
    disabled: false,
    required: true,
    message: "请填写"
  },
  {
    type: "textarea",
    label: "多行文本",
    defaultKey: null,
    defaultValue: null,
    width: "100px",
    disabled: false,
    required: true,
    message: "请填写",
    minRows: 2,
    maxRows: 5
  },
  {
    type: "number",
    label: "数字输入",
    defaultKey: null,
    defaultValue: null,
    width: "100px",
    disabled: false,
    required: true,
    message: "请填写",
    controls: true
  },
  {
    type: "time",
    label: "时间选择",
    defaultKey: null,
    defaultValue: null,
    width: "100px",
    disabled: false,
    required: true,
    message: "请选择",
    format: "HH:mm:ss",
    valueFormat: "HH:mm:ss"
  },
  {
    type: "date",
    label: "日期选择",
    defaultKey: null,
    defaultValue: null,
    width: "100px",
    disabled: false,
    required: true,
    message: "请选择",
    format: "YYYY-MM-DD",
    valueFormat: "YYYY-MM-DD"
  },
  {
    type: "checkbox",
    label: "多选框组",
    defaultKey: null,
    defaultValue: [],
    remote: false,
    api: "/api/index/carouselList",
    apiMethod: "get",
    apiLabelKey: "image",
    apiValueKey: "id",
    optionsRemote: [],
    width: "100px",
    disabled: false,
    required: true,
    message: "请选择",
    options: [
      {
        label: "选项1",
        value: 1
      },
      {
        label: "选项2",
        value: 2
      },
      {
        label: "选项3",
        value: 3
      }
    ]
  },
  {
    type: "radio",
    label: "单选框组",
    defaultKey: null,
    defaultValue: null,
    remote: false,
    api: "/api/index/carouselList",
    apiMethod: "get",
    apiLabelKey: "image",
    apiValueKey: "id",
    optionsRemote: [],
    width: "100px",
    disabled: false,
    required: true,
    message: "请选择",
    options: [
      {
        label: "选项1",
        value: 1
      },
      {
        label: "选项2",
        value: 2
      },
      {
        label: "选项3",
        value: 3
      }
    ]
  },
  {
    type: "select",
    label: "下拉框",
    defaultKey: null,
    defaultValue: null,
    remote: false,
    api: "/api/index/carouselList",
    apiMethod: "get",
    apiLabelKey: "image",
    apiValueKey: "id",
    optionsRemote: [],
    width: "100px",
    disabled: false,
    required: true,
    message: "请选择",
    options: [
      {
        label: "选项1",
        value: 1
      },
      {
        label: "选项2",
        value: 2
      },
      {
        label: "选项3",
        value: 3
      }
    ]
  }
];

export const config = {
  labelAlign: "right",
  layout: "horizontal",
  size: "default"
};
